package API.Collection.Set.Traversal;

import java.util.HashSet;
import java.util.Set;

public class EnhancedFor {
    public static void main(String[] args) {
        Set<Integer> set = new HashSet<>();
        for(int i = 1; i <= 10; i++){
            set.add(i);
        }
        for(Integer i : set){
            System.out.print(i + " ");
        }
    }
}
